package chars;

import java.io.FileReader;
import java.io.IOException;

/**
 * @Description
 * @Author zhaobaolin
 * @Date 2018/11/11
 */
public class FileReaderExample {
    public static void main(String[] args) {
        demo();
    }

    private static void demo()
    {
        try(FileReader f = new FileReader("./io/src/chars/fileReader.txt")){
            int c;
            while ((c = f.read()) != -1){
                System.out.print((char) c);
            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
